Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MHR unit tests - Part 1 #1630

Merged
merged 5 commits into from
Nov 28, 2023

Conversation

dimak1
Copy link
Collaborator

@dimak1 dimak1 commented Nov 24, 2023

Issue #: /bcgov/entity#18488

Description of changes:

  • Update MHR Unit test for Vue3 migration

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the PPR license (Apache 2.0).

@dimak1 dimak1 added the Vue3 Migration Work related to Vue3 migration. label Nov 24, 2023
@dimak1 dimak1 self-assigned this Nov 24, 2023
"private": true,
"appName": "Assets UI",
"sbcName": "SBC Common Components",
"scripts": {
"dev": "vite",
"build": "vite build",
"serve": "vite preview",
"serve": "vite dev",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this different from npm run dev?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vite preview starts localhost with files from /dist , while vite dev has a hot module reload.

Copy link
Collaborator

@cameron-eyds cameron-eyds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!
We will have conflicts in StaffPayment, as i had already done it. There is no staff payment dialog in MHR that i'm aware of.
No biggie tho!

Copy link
Contributor

@RuoxuanPengBC RuoxuanPengBC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!!!

@dimak1 dimak1 force-pushed the vue3-mhr-unit-tests branch from d5e9547 to 7a7bf6b Compare November 24, 2023 19:45
@dimak1
Copy link
Collaborator Author

dimak1 commented Nov 28, 2023

@cameron-eyds I added few more commits, if still all good, I would merge it. Let me know, thanks!

return new DOMWrapper(element)
}

function findInputByTestId(selector) {
Copy link
Collaborator Author

@dimak1 dimak1 Nov 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cameron-eyds this is the plugin and function to get id+input field. We can run it diretly on the wrapper. Makes tests a bit cleaner. eg. await wrapper.findInputByTestId('manufacturer-model').setValue('x'.repeat(70))

@cameron-eyds
Copy link
Collaborator

@dimak1 Looks great!

@dimak1 dimak1 merged commit ab654dd into bcgov:Vue3-Upgrade-Feature-Branch Nov 28, 2023
2 of 4 checks passed
cameron-eyds pushed a commit to cameron-eyds/ppr that referenced this pull request Dec 4, 2023
cameron-eyds added a commit that referenced this pull request Dec 8, 2023
* Ongoing PPR Unit testing (#1626)

* Vue3 Build (#1594)

* Vue3/Vuetify3/Vite-Build

* wip: Up to Searches

* wip: Search Features

* Wip: PPR Search Done - Onto Mhr Search Results

* Refactors generally completed on PPR/MHR Searches and history

* CI Updates

* update dockerfil

* revert docker file udpates

* docker change reverse

* Docker update

* docker node version update

* last attempt at ci build

* vue-affix removal

* Lint Fixes

* lint config updates

* Modernized Linting for Vue and Typescript -- Applied non functional fixes

* Updated vue declaration

* Vuetify and component updates - PRR (#1609)

* base dialog and Staff Payment instances updated

* ongoing PPR Table work

* Ongoin PPR Registrations/Amendment updates

* Ongoing PPR Reg - Includes stepper, footers, Bus Search, Base Address

* Ppr Registrations Happy Path

* Chips and other misc fixes for Amendments

* Vuetify Fixes for MHR and Misc Features (#1615)

* Mhr Registrations Happy Path

* Ongoing Registration Table Improvements

* User access Start, some more table clean up

* User Access Fixes + more table updates

* Cleaned up Tables Sorting

* Further Transfer and Unit Note Adjustments

* Masking fixes and replacements

* Date Pickers and misc styling adjustments

* Lint Sweeps and camelCase enforcement

* Reg Table Fix and command revert

* Further DatePicker Updates

* ViTest: Unit Testing Setup/Config/Utils and Ongoing Refactoring (#1623)

* Ongoing Unit Test fixes

* Ongoing PPR Test fixes - Includes base setup - solves most complexity - now test fixes

* more test config updates and unit test fixes

* button-footer rework

* Further Testing updates - Up to Debtors

* continued testing updates DischargeReg

* Tests up to EditTrust and more cleanup

* PR CleanUP

* Few more tests - up to FeeSummary

* FeeSummary test

* Lint update

* fee summary file clean up

* Sync Clean Up

* Ongoing test work

* Delete .idea directory

* PPR Unit Testing Part 3 (#1631)

* Ongoing tests: nearly complete

* Only Table row and reg wrapper to complete

* setup adjustments

* Reg Wrapper and Fetching updates

* ppr testing finalized

* jest clean up and terminal clean up

* Update MHR unit tests - Part 1 (#1630)

Update unit tests

* Vue Fold in Prep: Linting Fixes  (#1633)

* ongoing Linting

* Lint Fixes

* no gutters update

* MakeModel Test Fix

* MHR Test Fixes, Misc UI fixes (#1636)

* Test Updates, Misc UI fixes

* ts config clean up

* Update Unit Tests - Part 2 (#1635)

* Further updated to unit tests

* More unit test updates

* Further unit test updates

* More unit test updates

* Fix errors in Dashboard test by mocking api calls

* Fix Signout test from error

* Fix some of Typescript errors

* 17701 Misc MHR Clean Up (#1638)

* Misc Ui clean up

* remove dev code

* remove more dev code

* Fixes after Rebase

* Fix unit tests, small cleanup (#1640)

* Delay app mount to allow for auth data (#1641)

* Delay app mount to allow for auth data

* spacing fix

* optional chain doc for testing env

* linting fixes

* test fix and spelling correction

* Console cleanup

* Fix Lien Alert message for QS (#1643)

* Fix Lien Alert message for QS

* Version update

* SbcCC Version Updates + Lien/Locked Updates (#1645)

* Authentication Flow updates

* minor syntax fix and error handling

* Remove extra console

* RL Collateral Selector fix

* Axios version and interceptor upgrades (#1646)

* sbc-cc updates (for axios V) and axios interceptor updates

* Version bump

* Fix Lien Alert msg (#1648)

* Home Owners styling and Transfer Bugs (#1649)

* Home Owners Styling and Bug fixes

* Pr Updates

---------

Co-authored-by: Dima K <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Vue3 Migration Work related to Vue3 migration.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants